package com.study.app.info.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.study.app.info.mapper.InfoMapper;
import com.study.app.info.domain.Info;
import com.study.app.info.service.IInfoService;

/**
 * 评分细则Service业务层处理
 * 
 * @author bigsmart
 * @date 2023-06-29
 */
@Service
public class InfoServiceImpl implements IInfoService 
{
    @Autowired
    private InfoMapper infoMapper;

    /**
     * 查询评分细则
     * 
     * @param id 评分细则主键
     * @return 评分细则
     */
    @Override
    public Info selectInfoById(Long id)
    {
        return infoMapper.selectInfoById(id);
    }

    /**
     * 查询评分细则列表
     * 
     * @param info 评分细则
     * @return 评分细则
     */
    @Override
    public List<Info> selectInfoList(Info info)
    {
        return infoMapper.selectInfoList(info);
    }

    /**
     * 新增评分细则
     * 
     * @param info 评分细则
     * @return 结果
     */
    @Override
    public int insertInfo(Info info)
    {
        return infoMapper.insertInfo(info);
    }

    /**
     * 修改评分细则
     * 
     * @param info 评分细则
     * @return 结果
     */
    @Override
    public int updateInfo(Info info)
    {
        return infoMapper.updateInfo(info);
    }

    /**
     * 批量删除评分细则
     * 
     * @param ids 需要删除的评分细则主键
     * @return 结果
     */
    @Override
    public int deleteInfoByIds(Long[] ids)
    {
        return infoMapper.deleteInfoByIds(ids);
    }

    /**
     * 删除评分细则信息
     * 
     * @param id 评分细则主键
     * @return 结果
     */
    @Override
    public int deleteInfoById(Long id)
    {
        return infoMapper.deleteInfoById(id);
    }
}
